package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.OmcOldmanSanitationRecord;
import com.csun.cmny.provider.model.dto.sanitation.SanitationRecordSelectDto;
import com.csun.cmny.provider.model.vo.sanitation.HuaLongSanitationVo;
import com.csun.cmny.provider.model.vo.sanitation.SanitationRecordVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OmcOldmanSanitationRecordMapper extends Mapper<OmcOldmanSanitationRecord> {
    List<SanitationRecordVo> selectSanitationRecord(SanitationRecordSelectDto sanitationRecordSaveDto);

    /**
     * 根据老人Id和月份查询个人卫生记录
     *
     * @param elderId 老人Id
     * @param month   月份(yyyy-MM)
     *
     * @return the list.
     */
    List<HuaLongSanitationVo> queryElderAndMonth(@Param("elderId") Integer elderId, @Param("month") String month);
}
